Skip to content

Conversation

@brightprogrammer
Copy link
Contributor

Support for endpoints to parse and create JSON responses and requests to sync data types informations for each function in plugins or any other compatible user code using this library.

New API Functions

REAI_API bool BeginFunctionTypeGeneration (
    Connection* conn,
    AnalysisId  analysis_id,
    FunctionIds function_ids
);
REAI_API bool BeginFunctionTypeGenerationForAllFunctions (Connection* conn, AnalysisId analysis_id);
REAI_API bool IsFunctionTypeGenerationCompleted (
    Connection* conn,
    AnalysisId  analysis_id,
    FunctionId  function_id
);
REAI_API bool IsFunctionTypeGenerationCompletedForAllFunctions (Connection* conn, AnalysisId analysis_id);
REAI_API FunctionType GetFunctionType (Connection* conn, FunctionId function_id);
REAI_API bool SetFunctionType (
    Connection*  conn,
    AnalysisId   analysis_id,
    FunctionId   function_id,
    FunctionType function_type
);

Extras

  • Noticed memory leaks, where functions in Api.c where not destroying used objects after use in all control-flow-paths
  • Documentation standardization in Api.h
  • Removed old GetBasicFunctionInfoUsingBinaryId with GetFunctionList which uses v2 endpoint and analysis Id. This required adding a new debug field to FunctionInfo.
  • New macro StrOwnZstr to take ownership of an allocated const char* string.

@brightprogrammer brightprogrammer self-assigned this Jul 6, 2025
@brightprogrammer brightprogrammer added the enhancement New feature or request label Jul 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants